package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Id       int    `gorm:"type:int" json:"id"`
	Username string `gorm:"type:varchar(30)" json:"username"`
	Password string `gorm:"type:varchar(50)" json:"password"`
}

type Mange struct {
	gorm.Model
	Id      int    `gorm:"type:int" json:"id"`
	UserId  int    `gorm:"type:int" json:"userId"`
	Name    string `gorm:"type:varchar(30)" json:"name"`
	Phone   string `gorm:"type:varchar(30)" json:"phone"`
	Address string `gorm:"type:varchar(30)" json:"address"`
}
